package ro.gillardon.commons.enums;

/**
 * Enum containing all cities available for travel.
 *
 * @author davidl
 */
public enum City {

  /** Bretten. */
  BRETTEN("Bretten", null),

  /** Ismaning. */
  ISMANING("Ismaning", null),

  /** Munich. */
  MUNICH("Munich", "MUC"),

  /** Cluj. */
  CLUJ("Cluj", "CLJ"),

  /** Passau. */
  PASSAU("Passau", null),

  /** Frankfurt. */
  FRANKFURT("Frankfurt", "FRA"),

  /** Nuremberg. */
  NUREMBERG("Nuremberg", "NUE"),

  /** Dortmund. */
  DORTMUND("Dortmund", "DTM"), ;

  /** stores the city Name. */
  private String name;
  /** stores the city code. */
  private String code;

  /**
   * Private constructor.
   *
   * @param name the name of the city
   */
  private City(final String name, final String code) {
    this.name = name;
    this.code = code;
  }

  /**
   * Getter for the city name.
   *
   * @return the name of the city
   */
  public String getName() {
    return this.name;
  }

  /**
   * Getter for the city code.
   *
   * @return the code of the city
   */
  public String getCode() {
    return this.code;
  }

}
